// 清除默认样式
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  font: bold 20px "Courier";
}

// 设置主窗口的样式
#main {
  width: 360px;
  height: 420px;
  background: #b7d4a8;

  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);

  border: 10px solid black;
  border-radius: 20px;


  
  #stage {
    width: 304px;
    height: 304px;
    border: 2px solid black;
    margin: 15px auto;
    position: relative;

    #snake>div, #food {
      width: 10px;
      height: 10px;
      border: 1px solid #b7d4a8;
      position: absolute;
      background: #000;
    }

  }

  #score-panel {
    display: flex;
    justify-content: space-between;
    padding: 20px 20px 0;
  }

  #options {
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;

    font-size: 36px;

    #start {
      cursor: pointer;
    }
    #end {
      display: none;
    }
  }
}



